<%@page import="com.csxh.util.Key"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html >
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
#loginForm {
	margin: 200px auto 0px;
	background: #887766;
	width: 300px;
	border: 1px solid #ff0000
}
</style>
<title>网上商城</title>
</head>
<body>

    <% 
    Map<String,Object> map=new HashMap<String,Object>();
    map.put("encoding", "utf-9");
       request.setAttribute("key", new Key());
       request.setAttribute("map", map);
    %>
    
    ${map[key.encoding]}
    
	<div id="loginForm">

		<form action="login.servlet" method="post">
			<p>
				<label for="usernamex">用户名称：</label>
				<input id="usernamex"
					type="text" name="username" value="admin">
			</p>

			<p>
				<label for="passwordx">用户密码：</label> 
				<input id="passwordx"
					type="password" name="password" value="1234">
			</p>
			
			<p style="text-align:center">
			   <input type="submit" value="登录">
			</p>

		</form>
	</div>

</body>
</html>